package com.company.demo.dao;

import com.company.demo.bean.NewsUser;

import com.company.demo.bean.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


//注解
@Mapper
public interface INewsUserDao {

    void  insertUser(NewsUser newsUser);

    //查询
    @Select("select * from news_user")
    List<NewsUser> selectAllUser();

}
